const api = require('./index.js');

// 获取点单列表数据
export const ajaxGetOrderingList = (params) => api.post('/product/getProductInfoList', params)

// 查询热门商品
export const ajaxGetHotProductList = (params) => api.post('/package/getAppletPackageBySales', params)

// 搜索商品
export const ajaxQueryproducts = (params) => api.post('/package/getProductNameSearchList', params)

// 获取所有门店
export const ajaxGetStoreList = (params) => api.post('/set/getShopList', params)

// 商品详情
export const ajaxGetProductDetails = (params) => api.post('/product/getProductInfoById', params)

// 套餐详情
export const ajaxGetSetMealDetails = (params) => api.post('/package/getPackageDetail', params)

// 成为年度会员
export const ajaxUserRechargeVip = (params) => api.post('/order/userRechargeVip', params)

// 创建订单
export const ajaxCreateOrder = (params) => api.post('/order/createAppletOrderItem', params)

// 获取小程序支付调起参数
export const ajaxGetPayParams = (params) => api.post('/order/appletPay', params)